import http from "@/http";
import { UserAuth, UserAuthListParams } from "./userModel";

// 列表查询用户实名认证接口
export const queryUserAuthListApi = (param: UserAuthListParams) => {

  console.log("发送请求:", param); // 打印实际发送的参数
  return http.get("/api/UserAuth/getList", param);
};

// 状态改变接口
export const changeStatusApi = (userId: number, authId: number, status: number) => {
  return http.put("/api/UserAuth/changeStatus", { userId, authId, status });
};


// 删除用户接口
export const deleteUserApi = (userId: number) => {
  return http.delete(`/api/UserAuth/${userId}`);
};
